﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PMIS.Shared.DTO
{
    public class DataDictDto : ModelBase
    {
        public string? Id { get; set; }

        //e.g. Gender
        [Required(ErrorMessage = "字典类型不可为空")]
        public string DictType { get; set; }

        //e.g. 0， 1
        [Required(ErrorMessage = "请输入数字")]
        [RegularExpression(@"^\d+$", ErrorMessage = "输入的不是有效的数字")]
        public int? DictKey { get; set; }

        //e.g. 男， 女
        [Required(ErrorMessage = "字典名称不可为空")]
        public string DictName { get; set; }

        public int? Sort { get; set; }

        public string Remark { get; set; }
    }
}
